package com.atguigu.boot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DongZH
 * @date 2024/3/29 11:02
 */
@RestController // @ResponseBody和@Controller的组合注解
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        return "Hello,Spring Boot 3";
    }
}
